$('.nav-ul > li').on('click', navClick);

function navClick(e) {
    var index = e.target.dataset.index - 0;
    
}